package com.yingwei.mining.view;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.FontMetrics;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;
import java.io.File;
import java.io.IOException;
import java.util.Iterator;

import javax.imageio.ImageIO;
import javax.swing.JButton;
import javax.swing.JMenuItem;
import javax.swing.JPanel;
import javax.swing.JPopupMenu;
import javax.swing.JScrollPane;
import javax.swing.border.BevelBorder;

import com.yingwei.mining.control.Data;
import com.yingwei.mining.model.businessobject.Edge;
import com.yingwei.mining.model.businessobject.Excavator;
import com.yingwei.mining.model.businessobject.Node;
import com.yingwei.mining.model.businessobject.Truck;
import com.yingwei.mining.model.businessobject.UnloadArea;
import com.yingwei.mining.util.LocationUtil;

public class MapRunningPanel extends MapDeskTopPane
{
    private static final long serialVersionUID = -6906854448381341709L;
    private static Data data = Data.getData();

    protected void paintComponent(Graphics g)
    {
	super.paintComponent(g);
	for (Truck truck : data.getTrucks())
	{
	    paintTruck(g, truck);
	}
    }
}
